﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="ProductManage.aspx.cs" Inherits="E2_WEBSITE.cp.employee.manage.ProductManage" %>
<%@ Register assembly="obout_Interface" namespace="Obout.Interface" tagprefix="cc11" %>
<%@ Register assembly="obout_Grid_NET" namespace="Obout.Grid" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Names="Arial" 
        Font-Size="Large" Text="Qu&#7843;n lý s&#7843;n ph&#7849;m" 
        ForeColor="Blue"></asp:Label>
    <br />
    <br />
    <br />
    <br />
    <asp:Label ID="Label21" runat="server" BackColor="#FFFFCC" Font-Bold="True" 
        Font-Size="Medium" ForeColor="Black" Height="20px" Text="L&#7885;c danh sách s&#7843;n ph&#7849;m" 
        Width="585px"></asp:Label>
    <asp:Panel ID="Panel2" runat="server" BackColor="ControlLight" Font-Bold="False" 
        Font-Size="Small" Height="185px" Width="585px" ForeColor="Red" 
        BackImageUrl="~/images/Panel40.jpg">
        &nbsp;
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label7" runat="server" Font-Size="Small" ForeColor="Black" 
            Text="Hi&#7875;n th&#7883; danh sách s&#7843;n ph&#7849;m theo"></asp:Label>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <cc11:OboutDropDownList ID="dlTieuChiTimKiem" runat="server" MenuWidth="220px" Width="160px"
            onselectedindexchanged="dlTieuChiTimKiem_SelectedIndexChanged" AutoPostBack="true">
        </cc11:OboutDropDownList>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lbGiaTri1" runat="server" Font-Size="Small" ForeColor="Black"></asp:Label>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <cc11:OboutDropDownList ID="dlGiaTri1" runat="server" MenuWidth="130px" 
            Width="130px" Visible="False">
        </cc11:OboutDropDownList>
        <cc11:OboutTextBox ID="txtTenSanPham" runat="server" Font-Size="Small" 
        Width="160px" Visible="False"></cc11:OboutTextBox>
        <br />
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <cc11:OboutButton ID="btnHienThi" runat="server" Text="Hi&#7875;n th&#7883;" 
        Width="100px" Font-Bold="True" Font-Size="Small" Height="40px" 
            onclick="btnHienThi_Click" >
        </cc11:OboutButton>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </asp:Panel>
    <br />
    <br />
    <asp:Button ID="Button1" runat="server"
        Text="Thêm s&#7843;n ph&#7849;m m&#7899;i" Font-Bold="False" 
        onclick="btnThemSanPhamMoi_Click" />
    <br />
    <asp:Label ID="Label11" runat="server" BackColor="#FFFFCC" Font-Bold="True" 
        Font-Size="Medium" ForeColor="Blue" Height="20px" Text="Danh sách các s&#7843;n ph&#7849;m" 
        Width="585px"></asp:Label>
    <asp:Panel ID="Panel1" runat="server" Width="585px">
        <cc1:Grid ID="SanPhamGrid" runat="server" EnableRecordHover="True" 
            AutoGenerateColumns="false" AllowAddingRecords="False" 
            onselect="SanPhamGrid_Select" AutoPostBackOnSelect="True">
             <ScrollingSettings ScrollHeight="500" ScrollWidth="585" />
            <Columns>
                <cc1:Column DataField="ID" Width="50" HeaderText="ID" runat="server"/>
                <cc1:Column DataField="HinhAnh" HeaderText="Hình &#7843;nh" Width="150" runat="server">
                    <TemplateSettings TemplateID="ImageTemplate" />
                </cc1:Column>
                <cc1:Column DataField="TenSanPham" HeaderText="Tên s&#7843;n ph&#7849;m" Width="180" runat="server"/>
                <cc1:Column DataField="Gia" HeaderText="Giá" Width="100" runat="server"/>
                <cc1:Column DataField="TenNSX" HeaderText="Nhà s&#7843;n xu&#7845;t" Width="100" runat="server"/>
                <cc1:Column DataField="TenNhaPhanPhoi" HeaderText="Nhà phân ph&#7889;i" Width="100" runat="server"/>
                <cc1:Column DataField="NgayThemSP" HeaderText="Ngày thêm SP" Width="200" runat="server"/>
                <cc1:Column DataField="SoLuongTon" HeaderText="S&#7889; l&#432;&#7907;ng t&#7891;n" Width="100" runat="server"/>
             </Columns>
             
             <Templates>        
                  <cc1:GridTemplate runat="server" ID="ImageTemplate">
                     <Template><img src="/images/HinhAnhSanPham/<%# Container.Value %>" alt="" width="100" height="100" /></Template>
                  </cc1:GridTemplate>        
             </Templates>

        </cc1:Grid>
    </asp:Panel>
</asp:Content>
